@layout("/common/_curd/_container.html"){

<script type="text/javascript">
	var ctx = "${basePath}";
	var grid_selector = "#grid-table";
	var pager_selector = "#grid-pager";
	
	$(function(){
		initGrid();
		initMenuBtn("btns", "${code}");
	});
	
	function initGrid(){
		var grid_url = ctx + "/${code}/list";
		var _colnames = ["主键", 
						"姓名", 
						"英文名", 
						"性别", 
						"出生日期", 
						"身份证号", 
						"政治面貌", 
						"籍贯", 
						"移动电话", 
						"民族", 
						"当前住址", 
						"学历", 
						"家庭电话", 
						"家庭地址", 
						"婚姻状况", 
						""];
		var _colmodel = [{name:"id", index:"id", width:100},
						{name:"name", index:"name", width:100},
						{name:"en_name", index:"en_name", width:100},
						{name:"sex", index:"sex", width:100},
						{name:"birthday", index:"birthday", width:100},
						{name:"id_number", index:"id_number", width:100},
						{name:"political", index:"political", width:100},
						{name:"place", index:"place", width:100},
						{name:"mobilphone", index:"mobilphone", width:100},
						{name:"nation", index:"nation", width:100},
						{name:"address", index:"address", width:100},
						{name:"education", index:"education", width:100},
						{name:"telphone", index:"telphone", width:100},
						{name:"fam_address", index:"fam_address", width:100},
						{name:"ismarry", index:"ismarry", width:100},
						{name:"version", index:"version", width:100}];
		
		jQuery(grid_selector).jqGrid({
			url : grid_url,
		    shrinkToFit : true,
			colNames : _colnames,
			colModel : _colmodel, 
			jsonReader : {id :"id"},
			pager : pager_selector,
			postData : {sort : "id", order : "desc"}
		});
	}
</script>


	<!-- 配置 grid -->
	<div class="row">
		<div class="col-xs-12 tb-grid">
			<!-- 配置 查询 -->
			@ var _col=[
@		{name:"主键", index:"id", type:"text"},
			@		{name:"姓名", index:"name", type:"text"},
			@		{name:"英文名", index:"en_name", type:"text"},
			@		{name:"性别", index:"sex", type:"text"},
			@		{name:"出生日期", index:"birthday", type:"text"},
			@		{name:"身份证号", index:"id_number", type:"text"},
			@		{name:"政治面貌", index:"political", type:"text"},
			@		{name:"籍贯", index:"place", type:"text"},
			@		{name:"移动电话", index:"mobilphone", type:"text"},
			@		{name:"民族", index:"nation", type:"text"},
			@		{name:"当前住址", index:"address", type:"text"},
			@		{name:"学历", index:"education", type:"text"},
			@		{name:"家庭电话", index:"telphone", type:"text"},
			@		{name:"家庭地址", index:"fam_address", type:"text"},
			@		{name:"婚姻状况", index:"ismarry", type:"text"},
			@		{name:"", index:"version", type:"text"}							
			@];
			@ include("/common/_function/_search.html",{"col":_col}){}
			<!-- 按钮 -->
			<div class="welljq well-sm" id="btns"></div>
			<!-- grid -->
			<table id="grid-table"></table>
			<!-- 分页-->
			<div id="grid-pager"></div>
		</div>
	</div>
	
	<!-- 引入所需的js -->
	@include("/common/_listscript.html"){}
	
@}	